package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.LaborMapper;
import com.ruoyi.system.domain.Labor;
import com.ruoyi.system.service.ILaborService;

/**
 * 劳务费Service业务层处理
 * 
 * @author xuliang
 * @date 2024-03-29
 */
@Service
public class LaborServiceImpl implements ILaborService 
{
    @Autowired
    private LaborMapper laborMapper;

    /**
     * 查询劳务费
     * 
     * @param id 劳务费主键
     * @return 劳务费
     */
    @Override
    public Labor selectLaborById(Long id)
    {
        return laborMapper.selectLaborById(id);
    }

    /**
     * 查询劳务费列表
     * 
     * @param labor 劳务费
     * @return 劳务费
     */
    @Override
    public List<Labor> selectLaborList(Labor labor)
    {
        return laborMapper.selectLaborList(labor);
    }

    /**
     * 新增劳务费
     * 
     * @param labor 劳务费
     * @return 结果
     */
    @Override
    public int insertLabor(Labor labor)
    {
        return laborMapper.insertLabor(labor);
    }

    /**
     * 修改劳务费
     * 
     * @param labor 劳务费
     * @return 结果
     */
    @Override
    public int updateLabor(Labor labor)
    {
        return laborMapper.updateLabor(labor);
    }

    /**
     * 批量删除劳务费
     * 
     * @param ids 需要删除的劳务费主键
     * @return 结果
     */
    @Override
    public int deleteLaborByIds(Long[] ids)
    {
        return laborMapper.deleteLaborByIds(ids);
    }

    /**
     * 删除劳务费信息
     * 
     * @param id 劳务费主键
     * @return 结果
     */
    @Override
    public int deleteLaborById(Long id)
    {
        return laborMapper.deleteLaborById(id);
    }

    @Override
    public int countLaborByContractCodeAndNumber(Labor labor) {
        return laborMapper.countLaborByContractCodeAndNumber(labor);
    }

}
